﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace MathExpression
{
    public class PolynomialData : IExpressionData
    {
        public ReadOnlyCollection<IMathExpression> Values { get; private set; }

        public string Variable { get; private set; }

        internal PolynomialData(List<IMathExpression> polynom, string variable)
        {
            Values = polynom.AsReadOnly();
            Variable = variable;
        }
    }
}